
package com.magicode.screen.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 
 * @author wuxt
 *
 */
public class NewsParent extends Entity {
	
	private String id;
    private String title;
    private String shortTitle;
    private String translateTitle;
    private String subject;
	private String content;
	private String channelName;

	private String channelCode;
	private String channelId;
	private Integer displayType;
	private String authorName;
	private Integer clickCount;
	private Integer commentsCount;
	private String url;
	private String type;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date subcribeTime;
//	private List<Tag> tagList;
	private String tagsName;


	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getShortTitle() {
		return shortTitle;
	}
	public void setShortTitle(String shortTitle) {
		this.shortTitle = shortTitle;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getChannelName() {
		return channelName;
	}
	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getChannelId() {
		return channelId;
	}
	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}
	public Integer getDisplayType() {
		return displayType;
	}
	public void setDisplayType(Integer displayType) {
		this.displayType = displayType;
	}
	public String getAuthorName() {
		return authorName;
	}
	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}
	public Integer getClickCount() {
		return clickCount;
	}
	public void setSubcribeTime(Date subcribeTime) {
		this.subcribeTime = subcribeTime;
	}
	public Date getSubcribeTime() {
		return subcribeTime;
	}
	public Integer getCommentsCount() {
		return commentsCount;
	}
	public void setCommentsCount(Integer commentsCount) {
		this.commentsCount = commentsCount;
	}
	public void setClickCount(Integer clickCount) {
		this.clickCount = clickCount;
	}
	public String getTranslateTitle() {
		return translateTitle;
	}
	public void setTranslateTitle(String translateTitle) {
		this.translateTitle = translateTitle;
	}
//	public List<Tag> getTagList() {
//		return tagList;
//	}
//	public void setTagList(List<Tag> tagList) {
//		this.tagList = tagList;
//		tagsName = "";
//		if(tagList != null && tagList.size() > 0){
//			for(Tag tag : tagList){
//				tagsName += tag.getTitle() + "  ";
//			}
//		}
//	}

	public String getTagsName() {

		return tagsName;
	}

	public String getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}


}
